package com.xuanwu.ai.flow.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@ApiModel(value = "流程信息表")
@TableName(value = "chain")
public class FlowChain {

    @TableId(value = "id")
    @ApiModelProperty(value = "id")
    private Long id;

    @TableField(value = "application_name")
    @ApiModelProperty(value = "应用名称")
    private String applicationName;

    @TableField(value = "tenant_id")
    @ApiModelProperty(value = "租户id")
    private Integer tenantId;

    @TableField(exist = false)
    @ApiModelProperty(value = "租户名称")
    private String tenantName;

    @TableField(value = "chain_name")
    @ApiModelProperty(value = "流程名称")
    private String chainName;

    @TableField(value = "chain_desc")
    @ApiModelProperty(value = "流程描述")
    private String chainDesc;

    @TableField(value = "original_data")
    @ApiModelProperty(value = "流程图原始报文")
    private String originalData;

    @TableField(value = "el_data")
    @ApiModelProperty(value = "流程规则")
    private String elData;

    @TableField(value = "url")
    @ApiModelProperty(value = "流程请求url")
    private String url;

    @TableField(value = "flow_version_id")
    @ApiModelProperty(value = "流程版本id")
    private Long flowVersionId;

    @TableField(value = "status")
    @ApiModelProperty(value = "状态")
    private Integer status;

    @TableField(value = "create_time")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @TableField(value = "update_time")
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;


}
